let ua:string = navigator.userAgent;
let ipad:RegExpMatchArray | null = ua.match(/(iPad).*OS\s([\d_]+)/)
let isIphone:boolean | RegExpMatchArray | null=!ipad && ua.match(/(iPhone\sOS)\s([\d_]+)/)
let isAndroid:RegExpMatchArray | null = ua.match(/(Android)\s+([\d.]+)/)
let isMobile:boolean | RegExpMatchArray | null = isIphone || isAndroid;
//判断访问设备为手机还是pc，并引入对应的路由

let router;
if(isMobile){
  import('../utils/js/auto-size.js')
  router = import.meta.globEager('./indexMobile.ts')
}else{ 
  router =  import.meta.globEager('./index.ts')
}
let keys = Object.keys(router)[0]
export default router[keys].default;
